package cn.getech.data.metadata.controller.meta;

import cn.getech.data.intelligence.common.utils.R;
import cn.getech.data.metadata.controller.blood.BloodNode;
import cn.getech.data.metadata.model.req.collectiontableinfo.CollectiionTableInfoListReq;
import cn.getech.data.metadata.service.CollectionBloodService;
import cn.getech.data.metadata.service.CollectionTableService;
import com.alibaba.fastjson.JSONObject;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


/**
 * @description: 数据预览处理类
 * @author: wangzhaowen：kiss
 * @create: 2021/4/19 14:42
 * @version: 2021/4/19
 **/
@Slf4j
@Api(value="数据表详情",tags={"元数据表详情"})
@RestController
@RequestMapping("md/table")
public class CollectionTableController {
    @Autowired
    private CollectionTableService collectionTableService;
    @ApiOperation("预览")
    @PostMapping("/dataPreview")  // /data-metadata/md/table/dataPreview
    public R list(@RequestBody CollectiionTableInfoListReq req) {
        return  collectionTableService.dataPreview(req);
    }
}
